public class SubtractTest extends MathTest{//减法运算
    @Override
    public int calculate() {
        int rs = getA() - getB();
        System.out.println(getA()+"-"+getB()+"="+"?");
        return rs;
    }

    @Override
    String getQuestion() {
        String str =getA()+"-"+getB()+"="+"?"+"\t"+"参考答案："+(getA()-getB());
        return str;
    }

}
